package com.petadoption.serverclient.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.petadoption.serverclient.entity.Neck;
import com.petadoption.serverclient.mapper.NeckMapper;
import com.petadoption.serverclient.service.INeckService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 汪仕杰
 * @since 2023-08-28
 */
@Service
public class NeckServiceImpl extends ServiceImpl<NeckMapper, Neck> implements INeckService {

    @Resource
    private NeckMapper neckMapper;

    @Override
    public int addNeck(Neck neck) {
        return neckMapper.insert(neck);
    }
}
